home *** CD-ROM | disk | FTP | other *** search
/ Netware Super Library / Netware Super Library.iso / file_mgt / parse_m / exampl14.stx < prev    next >
Encoding:
Text File  |  1995-05-02  |  1.7 KB  |  25 lines

  1. ;C
  2. ┌─────────────────────────────────────────────────────────────────────────────┐
  3. │ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░    EXAMPLE #14    ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ │
  4. └─────────────────────────────────────────────────────────────────────────────┘
  5. ┌─────────────────────────────────────────────────────────────────────────────┐
  6. │                                                                             │
  7. │  THE INPUT FILE:  A report of orders and shipments for various customers.   │
  8. │                   This is similar to the report used in Example #2.         │
  9. │                                                                             │
  10. │  WHAT WE WANT:    We will create a report showing the items each customer   │
  11. │                   buys.  If the product code (e.g. XYZ-30-ABC) contains     │
  12. │                   a "-30-" in it, we will leave it out of the report.       │
  13. │                                                                             │
  14. │  HOW WE DO IT:    Because the format of the report is very predictable, we  │
  15. │                   can use READNEXT to advance to the next line, since we    │
  16. │                   will always know what it is (you can compare this with    │
  17. │                   Example #2, which is much more difficult to parse).       │
  18. │                                                                             │
  19. │                   We will use SETLEN to create an underline that is the     │
  20. │                   same length as the customers name.                        │
  21. │                                                                             │
  22. └─────────────────────────────────────────────────────────────────────────────┘
  23.  
  24. ;P
  25.